﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctrNewsDetails.ascx.cs" Inherits="Controls_News_ctrNewsDetails" %>


   

<div>
    <asp:Label runat="server" ID="lblTitle" Font-Bold="true"></asp:Label>
    <div>

        <p>
            <span style="float: right">
                <asp:Label ID="lblDatePosted" runat="server"></asp:Label>
            </span>
            <br />
            <asp:Label ID="lblInitData" runat="server"></asp:Label>
        </p>
        <p>
            <asp:Literal ID="ltrContent" runat="server"></asp:Literal></p>
      

<br />

<div>

          <asp:HyperLink ID="hplFaceBook" CssClass="text" runat="server" ImageUrl="~/Images/fb.png" ToolTip="Share Facebook"></asp:HyperLink>
    &nbsp;<asp:HyperLink ID="hplGoogle" CssClass="text" runat="server" ImageUrl="" ToolTip="Share Google"></asp:HyperLink>
    &nbsp;<asp:HyperLink ID="hplTwitter" CssClass="text" runat="server" ImageUrl="~/Images/twitter.png" ToolTip="Share Twitter"></asp:HyperLink>
</div>

 <!-- AddThis Button -->           

<div class="addthis_toolbox addthis_default_style ">

    <a class="addthis_button_facebook_like"></a>
    <a class="addthis_button_tweet"></a>
    <a class="addthis_button_pinterest_pinit"></a>
    <a class="addthis_counter addthis_pill_style"></a>

</div>

<%--<script type="text/javascript">    var addthis_config = { "data_track_addressbar": true };</script>--%>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-501354d43094bcf2"></script>

<!-- AddThis Button END -->

        <asp:Label ID="lbTagtile" runat="server" Text="Label"></asp:Label> <asp:Label ID="lblSource" runat="server"></asp:Label>

        <%--divComment--%>
        <div id="divComment" runat="server">
            <p>
                <asp:Label ID="lblComment" runat="server" Font-Bold="true" ></asp:Label></p>
            <p>
                <asp:Label ID="lbNote" runat="server" Font-Italic="true"></asp:Label></p>
            <div class="view-content">
                <div class="item-list" style="overflow: auto; height: 200px; border: 1px solid #D2D2D2">
                    <asp:Repeater ID="rptComment" runat="server" onitemcommand="rptComment_ItemCommand" onitemdatabound="rptComment_ItemDataBound">
                    <ItemTemplate>
                        <div class="views-field-subject">
                            <span class="field-content">
                                <asp:Label ID="lblCommentDetail" runat="server"></asp:Label>
                            </span>
                        </div>
                        <div class="views-field-timestamp">
                            <span class="field-content">
                                <asp:Label ID="lblEmail" runat="server" Font-Italic="true" ForeColor="Gray"></asp:Label>
                            </span>
                        </div>
                        <br />
                    </ItemTemplate>
                    </asp:Repeater>
                 
                    
                </div>
            </div>
        </div>
        <%--divWriteComment--%>
        <div style="padding-top: 20px" id="divWriteComment" runat="server">

            <p>
                <asp:Label ID="lblCommentInfo" runat="server" Font-Bold="true"></asp:Label>
            </p>
            <div style="padding-bottom: 7px">
                <asp:Label runat="server" ID="lblUsername" CssClass="text" Width="100px"></asp:Label>
                <asp:TextBox ID="txtUserName" runat="server" MaxLength="100" CssClass="boxlonger" Width="250px" ValidationGroup="rInput"></asp:TextBox><span style="color: Red; font-size: 12px">*</span>
            </div>
            <div style="padding-bottom: 7px">
                <asp:Label ID="lblEmail" runat="server" CssClass="text" Width="100px"> </asp:Label>
                <asp:TextBox ID="txtEmail" runat="server" MaxLength="50" CssClass="boxlonger" Width="250px" ValidationGroup="rInput"></asp:TextBox><span style="color: Red; font-size: 12px">*</span>
            </div>
            <div style="padding-bottom: 7px">
                <asp:Label ID="lblContent" runat="server" CssClass="text" Width="100px"></asp:Label>
                <asp:TextBox ID="txtContent" Font-Names="Arial" Font-Size="13px" runat="server" Text="" MaxLength="2000" Width="570px" Height="100px" TextMode="MultiLine" CssClass="boxlonger" ValidationGroup="rInput"></asp:TextBox>
            </div>
            <div>
                <br />
                <asp:Button ID="btnSave" runat="server" Width="80px" ValidationGroup="rInput" OnClick="btnSave_Click" />
            </div>
        </div>
        <br />
        <asp:Label ID="lbnewsother" runat="server" Text="Label" Font-Size="Large" Font-Bold="true"></asp:Label>
        <br />
        <asp:Repeater ID="rptRelatedNews" runat="server" onitemcommand="rptRelatedNews_ItemCommand" onitemdatabound="rptRelatedNews_ItemDataBound">
                    <ItemTemplate>
                        <asp:LinkButton ID="lbtRelated" runat="server" CommandName="newsrelated">LinkButton</asp:LinkButton><br />
                    </ItemTemplate>
        </asp:Repeater>




        <!--Validator Empty-->
        <asp:RequiredFieldValidator ID="rfvUsername" runat="server" SetFocusOnError="true" ControlToValidate="txtUserName" Display="None" ValidationGroup="rInput" Text="*"></asp:RequiredFieldValidator>
        <asp:RequiredFieldValidator ID="rfvEmail" runat="server" SetFocusOnError="true" ControlToValidate="txtEmail" Display="None" ValidationGroup="rInput" Text="*"></asp:RequiredFieldValidator>
        <asp:RequiredFieldValidator ID="rfvContent" runat="server" SetFocusOnError="true" ControlToValidate="txtContent" Display="None" ValidationGroup="rInput" Text="*"></asp:RequiredFieldValidator>
        <!--Check email-->
        <asp:RegularExpressionValidator ID="revEmail" runat="server" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ControlToValidate="txtEmail" Display="None" ValidationGroup="rInput" SetFocusOnError="True" Text="*"></asp:RegularExpressionValidator>
        <asp:ValidationSummary ID="ValidationSummary4" ShowMessageBox="true" runat="server" ValidationGroup="rInput" ShowSummary="False" />
    </div>
</div>
